300 |
How can I change the font for entire item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); spComboBox1->GetItems()->AddItem("default font"); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'stdole' for the library: 'OLE Automation' #import <stdole2.tlb> */ stdole::FontPtr f = ::CreateObject(L"StdFont"); f->PutName(L"Tahoma"); f->PutSize(_variant_t(long(12))); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutItemFont(var_Items->AddItem("new font"),IFontDispPtr(((stdole::FontPtr)(f)))); |
299 |
How do I vertically align a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_FALSE); spComboBox1->GetColumns()->Add(L"VAlign"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("This is a bit of long text that should break the line"); var_Items->PutCellCaption(h,long(1),"top"); var_Items->PutCellVAlignment(h,long(1),EXCOMBOBOXLib::exTop); h = var_Items->AddItem("This is a bit of long text that should break the line"); var_Items->PutCellCaption(h,long(1),"middle"); var_Items->PutCellVAlignment(h,long(1),EXCOMBOBOXLib::exMiddle); h = var_Items->AddItem("This is a bit of long text that should break the line"); var_Items->PutCellCaption(h,long(1),"bottom"); var_Items->PutCellVAlignment(h,long(1),EXCOMBOBOXLib::exBottom); |
298 |
How can I change the position of an item
|
297 |
How do I find an item based on a path
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->PutItemData(var_Items->InsertItem(h,vtMissing,"Child 2"),long(1234)); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetFindPath(L"Root 1\\Child 1"),VARIANT_TRUE); |
296 |
How do I find an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetFindItem("Child 2",long(0),vtMissing),VARIANT_TRUE); |
295 |
How can I insert a hyperlink or an anchor element
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Column"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellCaptionFormat(var_Items->AddItem("Just an <a1>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML); EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems(); var_Items1->PutCellCaptionFormat(var_Items1->AddItem("Just another <a2>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML); |
294 |
How do I find the index of the item based on its handle
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetItemByIndex(var_Items->GetItemToIndex(h)),VARIANT_TRUE); |
293 |
How do I find the handle of the item based on its index
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetItemByIndex(1),VARIANT_TRUE); |
292 |
How can I find the cell being clicked in a radio group
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMarkSearchColumn(VARIANT_FALSE); spComboBox1->PutSelBackColor(RGB(255,255,128)); spComboBox1->PutSelForeColor(RGB(0,0,0)); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); spComboBox1->GetColumns()->Add(L"C3"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"Radio 1"); var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(1),1234); var_Items->PutCellCaption(h,long(2),"Radio 2"); var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(2),1234); var_Items->PutCellState(h,long(1),1); var_Items->PutCellBold(vtMissing,var_Items->GetCellChecked(1234),VARIANT_TRUE); |
291 |
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later
|
290 |
Can I let the user to resize at runtime the specified item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutScrollBySingleLine(VARIANT_TRUE); spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutItemAllowSizing(var_Items->AddItem("resizable item"),VARIANT_TRUE); var_Items->AddItem("not resizable item"); |
289 |
How can I change the size ( width, height ) of the picture
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->PutCellPicture(h,long(0),((IDispatch*)(spComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Items->PutCellPictureWidth(h,long(0),24); var_Items->PutCellPictureHeight(h,long(0),24); var_Items->PutItemHeight(h,32); h = var_Items->AddItem("Root 2"); var_Items->PutCellPicture(h,long(0),((IDispatch*)(spComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))); var_Items->PutItemHeight(h,48); |
288 |
How do I unselect an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutSelectItem(h,VARIANT_FALSE); |
287 |
How do I find the selected item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutSelectItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetSelectedItem(0),VARIANT_TRUE); |
286 |
How do I select an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutSelectItem(h,VARIANT_TRUE); |
285 |
Can I display a button with some picture or icon inside
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1)," Button <img>p1</img> "); var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML); var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE); var_Items->PutItemHeight(h,48); |
284 |
Can I display a button with some picture or icon inside
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1)," Button <img>1</img> "); var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML); var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE); |
283 |
Can I display a button with some icon inside
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1)," <img>1</img> "); var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML); var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE); |
282 |
How can I assign multiple icon/picture to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spComboBox1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif"); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("text <img>p1</img> another picture <img>p2</img> and so on"); var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML); var_Items->PutCellPicture(h,long(0),((IDispatch*)(spComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)")))); var_Items->PutItemHeight(h,48); var_Items->AddItem("Root 2"); |
281 |
How can I assign an icon/picture to a cell
|
280 |
How can I assign multiple icons/pictures to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root <img>1</img> 1, <img>2</img>, ... and so on "); var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML); |
279 |
How can I assign multiple icons/pictures to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->PutCellImages(h,long(0),"1,2,3"); |
278 |
How can I assign an icon/picture to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->PutCellImage(h,long(0),1); var_Items->PutCellImage(var_Items->InsertItem(h,vtMissing,"Child 1"),long(0),2); var_Items->PutCellImage(var_Items->InsertItem(h,vtMissing,"Child 2"),long(0),3); var_Items->PutExpandItem(h,VARIANT_TRUE); |
277 |
How can I get the handle of an item based on the handle of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetCellItem(var_Items->GetItemCell(h,long(0))),VARIANT_TRUE); |
276 |
How can I display a button inside the item or cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1)," Button 1 "); var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE); h = var_Items->AddItem("Cell 2"); var_Items->PutCellCaption(h,long(1)," Button 2 "); var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::CenterAlignment); var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE); |
275 |
How can I change the state of a radio button
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMarkSearchColumn(VARIANT_FALSE); spComboBox1->PutSelBackColor(RGB(255,255,128)); spComboBox1->PutSelForeColor(RGB(0,0,0)); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); spComboBox1->GetColumns()->Add(L"C3"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"Radio 1"); var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(1),1234); var_Items->PutCellCaption(h,long(2),"Radio 2"); var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(2),1234); var_Items->PutCellState(h,long(1),1); |
274 |
How can I assign a radio button to a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMarkSearchColumn(VARIANT_FALSE); spComboBox1->PutSelBackColor(RGB(255,255,128)); spComboBox1->PutSelForeColor(RGB(0,0,0)); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); spComboBox1->GetColumns()->Add(L"C3"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"Radio 1"); var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(1),1234); var_Items->PutCellCaption(h,long(2),"Radio 2"); var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE); var_Items->PutCellRadioGroup(h,long(2),1234); var_Items->PutCellState(h,long(1),1); |
273 |
How can I change the state of a checkbox
|
272 |
How can I assign a checkbox to a cell
|
271 |
How can I display an item or a cell on multiple lines
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutScrollBySingleLine(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines"); var_Items->PutCellSingleLine(h,long(1),EXCOMBOBOXLib::exCaptionWordWrap); |
270 |
How can I assign a tooltip to a cell
|
269 |
How can I associate an extra data to a cell
|
268 |
How do I enable or disable a cell
|
267 |
How do I change the cell's foreground color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"Cell 2"); var_Items->PutCellForeColor(h,long(1),RGB(255,0,0)); |
266 |
How do I change the visual effect for the cell, using your EBN files
|
265 |
How do I change the cell's background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"Cell 2"); var_Items->PutCellBackColor(h,long(1),RGB(255,0,0)); |
264 |
How do I change the caption or value for a particular cell
|
263 |
How do I get the handle of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutCellBold(vtMissing,var_Items->GetItemCell(h,long(0)),VARIANT_TRUE); |
262 |
How do I retrieve the focused item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetFocusItem(),VARIANT_TRUE); |
261 |
How do I get the number or count of child items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->AddItem(var_Items->GetChildCount(h)); |
260 |
How do I enumerate the visible items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->PutItemBold(var_Items->GetFirstVisibleItem(),VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE); |
259 |
How do I enumerate the siblings items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->PutItemBold(var_Items->GetNextSiblingItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetPrevSiblingItem(var_Items->GetNextSiblingItem(var_Items->GetFirstVisibleItem())),VARIANT_TRUE); |
258 |
How do I get the parent item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetItemParent(var_Items->GetItemChild(h)),VARIANT_TRUE); |
257 |
How do I get the first child item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->PutItemBold(var_Items->GetItemChild(h),VARIANT_TRUE); |
256 |
How do I enumerate the root items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutItemBold(var_Items->GetRootItem(0),VARIANT_TRUE); var_Items->PutItemUnderline(var_Items->GetRootItem(1),VARIANT_TRUE); |
255 |
I have a hierarchy, how can I count the number of root items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root 1"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); h = var_Items->AddItem("Root 2"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->AddItem(var_Items->GetRootCount()); |
254 |
How can I make an item unselectable, or not selectable
|
253 |
How can I hide or show an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Column"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("hidden"); var_Items->PutItemHeight(h,0); var_Items->PutSelectableItem(h,VARIANT_FALSE); var_Items->AddItem("visible"); |
252 |
How can I change the height for all items
|
251 |
How do I change the height of an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutScrollBySingleLine(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutItemHeight(var_Items->AddItem("height"),128); spComboBox1->GetItems()->AddItem("enabled"); |
250 |
How do I disable or enable an item
|
249 |
How do I display as strikeout a cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellStrikeOut(var_Items->AddItem("strikeout"),long(0),VARIANT_TRUE); |
248 |
How do I display as strikeout a cell or an item
|
247 |
How do I display as strikeout an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutItemStrikeOut(var_Items->AddItem("strikeout"),VARIANT_TRUE); |
246 |
How do I underline a cell
|
245 |
How do I underline a cell or an item
|
244 |
How do I underline an item
|
243 |
How do I display as italic a cell
|
242 |
How do I display as italic a cell or an item
|
241 |
How do I display as italic an item
|
240 |
How do I bold a cell
|
239 |
How do I bold a cell or an item
|
238 |
How do I bold an item
|
237 |
How do I change the foreground color for the item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); long hC = var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->PutItemForeColor(hC,RGB(255,0,0)); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
236 |
How do I change the visual appearance for the item, using your EBN technology
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); long hC = var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->PutItemBackColor(hC,0x1000000); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
235 |
How do I change the background color for the item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); long hC = var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->PutItemBackColor(hC,RGB(255,0,0)); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
234 |
How do I expand or collapse an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
233 |
How do I associate an extra data to an item
|
232 |
How do I get the number or count of items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems(); var_Items1->AddItem(var_Items1->GetItemCount()); |
231 |
How can I change at runtime the parent of the item
|
230 |
How can I sort the items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); spComboBox1->GetColumns()->GetItem("Default")->PutSortOrder(EXCOMBOBOXLib::SortDescending); |
229 |
How do I sort the child items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Root"); var_Items->InsertItem(h,vtMissing,"Child 1"); var_Items->InsertItem(h,vtMissing,"Child 2"); var_Items->PutExpandItem(h,VARIANT_TRUE); var_Items->SortChildren(h,long(0),VARIANT_FALSE); |
228 |
How can I remove or delete all items
|
227 |
How can I remove or delete an item
|
226 |
How can I add or insert child items
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); long h = var_Items->AddItem("Cell 1"); var_Items->PutCellCaption(h,long(1),"Cell 2"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Cell 3"),long(1),"Cell 4"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Cell 5"),long(1),"Cell 6"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
225 |
How can I add or insert a child item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->InsertItem(var_Items->AddItem("root"),vtMissing,"child"); |
224 |
How can I add or insert an item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"C1"); spComboBox1->GetColumns()->Add(L"C2"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem("Cell 1"),long(1),"Cell 2"); long h = var_Items->AddItem("Cell 3"); var_Items->PutCellCaption(h,long(1),"Cell 4"); |
223 |
How can I add or insert an item
|
222 |
How can I get the columns as they are shown in the control's sortbar
|
221 |
How can I access the properties of a column
|
220 |
How can I remove all the columns
|
219 |
How can I remove a column
|
218 |
How can I get the number or the count of columns
|
217 |
How can I change the font for all cells in the entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); /* Includes the definition for CreateObject function like follows: #include <comdef.h> IUnknownPtr CreateObject( BSTR Object ) { IUnknownPtr spResult; spResult.CreateInstance( Object ); return spResult; }; */ /* Copy and paste the following directives to your header file as it defines the namespace 'stdole' for the library: 'OLE Automation' #import <stdole2.tlb> */ stdole::FontPtr f = ::CreateObject(L"StdFont"); f->PutName(L"Tahoma"); f->PutSize(_variant_t(long(12))); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutFont(IFontDispPtr(((stdole::FontPtr)(f)))); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
216 |
How can I change the background color for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutBackColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
215 |
How can I change the foreground color for all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
214 |
How can I show as strikeout all cells in the column
|
213 |
How can I underline all cells in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutUnderline(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
212 |
How can I show in italic all data in the column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutItalic(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
211 |
How can I bold the entire column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
210 |
How can I display a computed column and highlight some values that are negative or less than a value
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->GetColumns()->Add(L"A"); spComboBox1->GetColumns()->Add(L"B"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2)); EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem(long(10)),long(1),long(20)); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"%2 > 10",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::FormatApplyToEnum(0x2)); |
209 |
Can I display a computed column so it displays the VAT, or SUM
|
208 |
How can I show a column that adds values in the cells
|
207 |
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter"))); var_Column->PutFilterOnType(VARIANT_TRUE); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutAutoSearch(EXCOMBOBOXLib::exContains); spComboBox1->GetItems()->AddItem("Canada"); spComboBox1->GetItems()->AddItem("USA"); |
206 |
Is there any function to filter the control's data as I type, something like filter on type
|
205 |
How can I programmatically filter a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXCOMBOBOXLib::exNonBlanks); spComboBox1->GetItems()->AddItem(vtMissing); spComboBox1->GetItems()->AddItem("not empty"); spComboBox1->ApplyFilter(); |
204 |
How can I show or display the control's filter
|
203 |
How can I customize the items being displayed in the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Custom Filter"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterPattern(VARIANT_FALSE); var_Column->PutCustomFilter(_bstr_t("Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.") + "txt|*.log"); var_Column->PutFilterType(EXCOMBOBOXLib::exPattern); var_Column->PutFilter(L"*.xls"); spComboBox1->GetItems()->AddItem("excel.xls"); spComboBox1->GetItems()->AddItem("word.doc"); spComboBox1->GetItems()->AddItem("pp.pps"); spComboBox1->GetItems()->AddItem("text.txt"); spComboBox1->ApplyFilter(); |
202 |
How can I change the order or the position of the columns in the sort bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutSortBarVisible(VARIANT_TRUE); spComboBox1->PutSortBarColumnWidth(48); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C1")))->PutSortOrder(EXCOMBOBOXLib::SortAscending); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C2")))->PutSortOrder(EXCOMBOBOXLib::SortDescending); spComboBox1->GetColumns()->GetItem("C2")->PutSortPosition(0); |
201 |
How do I arrange my columns on multiple levels
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"S")))->PutWidth(32); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1)); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1)); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 4")))->PutLevelKey(long(1)); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 1")))->PutLevelKey("2"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 2")))->PutLevelKey("2"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 3")))->PutLevelKey("2"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 4")))->PutLevelKey("2"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"E")))->PutWidth(32); |